Release 10.1A: OpenEdge Development:
Java Open Clients
Unknown value (?) as a parameter
The Unknown value (
?) is mapped to a Java object with anullvalue. Theint,boolean, andlongdata types, however, are intrinsic types, not Java classes, so thenullvalue does not belong to the set of values they support. If a proxy is defined to support Progress Unknown value (?) in ProxyGen, parameters that otherwise would be intrinsic data types are generated as Java classes. For example, ProxyGen generates anIntegerparameter instead of anint, aBooleanparameter instead of aboolean, and aLongparameter instead oflong.The following is an example of a proxy method signature that does not support Progress Unknown value (
?) for the first and third parameters:
This is an example of a proxy method that allows all the parameter values to be Unknown value (
?):
Arrays and Unknown value (?)
Since arrays are Java objects, they can be assigned the null value.
However,
int[ ],boolean[ ], andlong[ ]are arrays of intrinsic types, so the individual elements of the array cannot be null. Theint[ ],boolean[ ], orlong[ ]array as a whole can be null, which means that every element of the array on the AppServer will beUNKNOWN. If you want to assign Unknown value (?) to individual array elements, use the Allow Unknown check box in ProxyGen, and the generated proxy will containInteger[ ],Boolean[ ]orLong[ ]for the parameter instead ofint[ ],boolean[ ], orlong[ ],respectively.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |